import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import mitt from 'mitt'
import FastClick from 'fastclick'
import VueLazyLoad from 'vue3-lazyload'
// 正常配置
const app = createApp(App)
// 挂载事务总线
app.config.globalProperties.$bus = new mitt()
// Vue.prototype.$bus = new Vue()

// 解决移动端300ms延迟
FastClick.attach(document.body)
// 使用vue懒加载插件
createApp(App).use(store).use(router).use(VueLazyLoad, {
    loading: require('./assets/img/common/placeholder.png')
}).mount('#app')
